﻿/*CREATE TRIGGER [dbo].[BoletinesAcciones_DeletionTrigger] 
    ON [BoletinesAcciones] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[BoletinesAcciones_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[AccionGuid] = [BoletinesAcciones_Tombstone].[AccionGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[BoletinesAcciones_Tombstone] 
    ([AccionGuid], DeletionDate)
    SELECT [AccionGuid], GETUTCDATE()
    FROM deleted 
END*/